package com.module.base.utils;

import android.graphics.Paint;
import android.text.TextPaint;
import android.widget.TextView;

public class TextViewUtils {

    public static void setStrokeWidth(TextView textView, float width) {
        TextPaint paint = textView.getPaint();
        //设置画笔的描边宽度值,2为最大值,1为正常bold粗度一样，正常使用0.5f
        paint.setStrokeWidth(width);
        paint.setStyle(Paint.Style.FILL_AND_STROKE);
    }
}
